<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>test2</title>
</head>

<body>
  <h2>test2</h2>
  <script>
    var person = {
      name: 'wayne zhu',
      age: 22,
      school: 'xjtu'
    }
    window.name = JSON.stringify(person)
    setTimeout(function () {
      window.name = "test-change";
    }, 5000)
  </script>
</body>

</html>